package com.kgc.itrip.service;

import com.kgc.itrip.dto.Dto;
import com.kgc.itrip.common.Page;
import com.kgc.itrip.pojo.ItripUser;

import java.util.List;
import java.util.Map;

/**
* Created by shang-pc on 2015/11/7.
*/
public interface ItripUserService {

    public ItripUser getItripUserById(Long id)throws Exception;

    public List<ItripUser>	getItripUserListByMap(Map<String, Object> param)throws Exception;

    public Integer getItripUserCountByMap(Map<String, Object> param)throws Exception;

    public Integer itriptxAddItripUser(ItripUser itripUser)throws Exception;

    public Integer itriptxModifyItripUser(ItripUser itripUser)throws Exception;

    public Integer itriptxDeleteItripUserById(Long id)throws Exception;

    public Page<ItripUser> queryItripUserPageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;

    Dto isExisitByName(String name)throws Exception;

    Dto itriptxActiveAccount(String user, String code) throws Exception;

    Dto itriptxActiveEmail(String user, String code) throws Exception;

    Dto logOut(String agent,String token)throws Exception;
}
